class Users < ActiveRecord::Migration
  def self.up
    query = <<-_SQL
      CREATE TABLE `users` (
        `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
        `login` TINYTEXT NOT NULL ,
        `password` VARCHAR( 32 ) NOT NULL
      ) ENGINE = MYISAM ;
    _SQL

    execute query
  end

  def self.down
    execute "DROP TABLE `users` "
  end
end
